"use client"
import React from 'react';
import { Tag } from "antd";

interface Props {
  tagList: string [];
}
const TagList  = ({tagList = []}:Props) => {
  return <div className="tag-list">
    {
      tagList.map((tag)=>{
        return <Tag key = {tag}>{tag}</Tag>;
      })
    }
  </div>;
}

export default TagList;
